<template>
	<view class="">
		<view class="bg" :style="{ '--bg-image': `url(${distributionBg})` }">
			
		</view>
		<view class="textAlign " style="color: #007FFF;margin-top: 20rpx;">
			{{userInfo.associateState==1?'正在申请中...':userInfo.associateState==2?'审核通过...':'审核失败...'}}
		</view>
		<view class="textAlign" style="color: #999999;margin-top: 10rpx;">
			<text>{{userInfo.associateState==1?'预计申请时间需要7个工作日，请耐心等待':userInfo.associateState==2?'审核通过已经成为合伙人了':userInfo.rationale}}</text>
		</view>
		<view class="flex" @click="ReapplyFn()">
			<view class="submitApplication  flex" v-if="userInfo.associateState==3">
				 重新申请
			</view>
		</view>
		
	</view>
	
	
</template>

<script>
	export default {
		components: {
	
	
		},
		data() {
			return {
				userInfo: uni.getStorageSync("userInfo"),

				location: '',
	            distributionBg:this.$img.distributionBg
	
	
	
			}
		},
		onLoad() {
			console.log(uni.getStorageSync("userInfo"))
		},
		onShow() {
			this.$at.releaseKey('submit');
		},
		methods: {
			ReapplyFn(){
				this.$sun.navTo('/pagesB/index/applyDistributor')
				
			}
			
		}
	}
	
</script>

<style lang="less">
	.bg {
		background-repeat: no-repeat;
		background-size: cover;
		background-image: (var(--bg-image));
		height: 588rpx;
	}
	.submitApplication{
		width: 500rpx;
		color: #fff;
		margin-top: 50rpx;
		height: 102rpx;
		border-radius: 142rpx;
		
		background: rgb(120, 93, 246);
	}
	
</style>